package com.zl.service.impl;


import com.zl.service.AsyncService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author zl
 * @date 2023/3/7
 * @apiNote
 */
@Service("asyncService")
public class AsyncServiceImpl implements AsyncService {

    @Override
    @Async
    public void hello() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
